export const getNoticeStatusName = Object.assign(
  (value: number | null | undefined) => {
    switch (value) {
      case 0:
        return '待发送' as const
      case 1:
        return '已发送' as const
      case 2:
        return '已取消' as const
      default:
        return `${value ?? ''}` || null
    }
  },
  { valueList: [0, 1, 2] },
)
